﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;
using System.IO;
using System.Text.RegularExpressions;
using System.Diagnostics;

using LowLevelGraphics;
using LowLevelGraphics.Filter;

namespace WindowsRemoteScripting
{
    /// <summary>
    /// FormTypeCommand
    /// </summary>
    public partial class FormTypeCommand : Form
    {
        /// <summary>
        /// Initializes a new instance of the <see cref="FormTypeCommand"/> class.
        /// </summary>
        public FormTypeCommand()
        {
            InitializeComponent();          
        }

        /// <summary>
        /// Handles the Click event of the cbOK control.
        /// </summary>
        /// <param name="sender">The source of the event.</param>
        /// <param name="e">The <see cref="System.EventArgs"/> instance containing the event data.</param>
        private void cbOK_Click(object sender, EventArgs e)
        {
            this.DialogResult = DialogResult.OK;

            this.Close();
        }     

        /// <summary>
        /// Handles the Click event of the cbCancel control.
        /// </summary>
        /// <param name="sender">The source of the event.</param>
        /// <param name="e">The <see cref="System.EventArgs"/> instance containing the event data.</param>
        private void cbCancel_Click(object sender, EventArgs e)
        {
            this.DialogResult = DialogResult.Cancel;
            this.Close();
        }

        /// <summary>
        /// Input text
        /// </summary>
        public string InputText
        {
            get { return textBox1.Text; }
        }
    }
}
